<?php

namespace Openapi\Snippets\Cookbook\SecureEndpoint;

use OpenApi\Annotations as OA;

class Controller
{
    /**
     * @OA\Get(
     *     path="/api/secure/",
     *     summary="Requires authentication",
     *     security={ {"api_key": {}} }
     * )
     */
    public function getSecurely()
    {
        // ...
    }
}
